package com.baizhi.dao;

import com.baizhi.entity.Category;

import java.util.List;

public interface CategoryDao {

    public void addCategoryLevels1(Category category);

    public void deleteCategory(String categoryId);

    public void updateCategory(Category category);

    public Category selectCategoryByName(String categoryName);

    public List<Category> selectAllCategory();

    public List<Category> selectCategoryLevels1();

    public List<Category> selectCategoryLevels2();

    public void addCategoryLevels2(Category category);

    public Category selectCategoryById(String categoryId);

    public Integer selectLevels1ForLevels2CountById(String categoryId);

    public Integer selectLevels2ForBookCountById(String categoryId);



    public List<Category> selectCategoryLevels1s();

    public List<Category> selectCategoryByFirstId(String firstId);

}
